package nc2db;
public class LeapYear{
 public boolean isLeapYear(int year){
  if((year%4==0&&year%100!=0)||year%400==0)
   return true;
  else
   return false;
  }
  public static void main(String[] args) {
	  LeapYear LY = new LeapYear();
	  for(int i=1948;i<2009;i++)
      {
		if(LY.isLeapYear(i))
	    {
			 System.out.println(i);
		}
	  }
  }
 }